package org.openea.eap.module.obpm.service.form;

import com.alibaba.fastjson.JSONArray;
import org.openbpm.base.api.query.QueryFilter;
import org.openbpm.base.manager.Manager;
import org.openea.eap.module.obpm.model.form.FormDef;

import java.util.List;
import java.util.Map;

public interface FormDefManager extends Manager<String, FormDef> {
  FormDef getByKey(String key);

  void saveBackupHtml(FormDef formDef);

  String getBackupHtml(FormDef formDef);

  String generateFormHtml(String boKey, JSONArray templateConfig, String fromType, boolean isGeneraterSubTable);

  List<Map> queryWithBo(QueryFilter queryFilter);

  String genColumnHtml(String boKey, String formType, String tableKey, String columnKey);
}
